Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use visually hidden as utility class only #1269

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

alimpens
Copy link
Contributor

We're probably going to get rid of the VisuallyHidden React component, and just use it as a utility class. This PR prepares for that, and also fixes some invalid HTML in the Footer examples.

It also fixes an issue with the Avatar in Header story.

@@ -9,7 +9,6 @@ import { forwardRef } from 'react'
import type { ForwardedRef, HTMLAttributes } from 'react'
import { Icon } from '../Icon'
import { Image } from '../Image'
import { VisuallyHidden } from '../VisuallyHidden'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the component itself going to be removed too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, yeah

Copy link
Contributor

@VincentSmedinga VincentSmedinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes much better

@VincentSmedinga VincentSmedinga merged commit d21296f into develop Jun 21, 2024
4 checks passed
@VincentSmedinga VincentSmedinga deleted the fix/use-vis-hidden-as-class branch June 21, 2024 14:20
@github-actions github-actions bot mentioned this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants